<template>
  <view>
    <custom-navbar title="我的" :leftIcon="false"></custom-navbar>

    <view class="user-section">
      <image class="bg" src="/static/images/swiper1.png"></image>
      <view class="user-info-box">
        <view class="portrait-box">
          <image
            class="portrait"
            :src="userInfo.portrait || '/static/missing-face.png'"
          ></image>
        </view>
        <view class="info-box">
          <text class="username">{{ userInfo.nickname || "游客" }}</text>
        </view>
      </view>
      <view class="vip-card-box">
        <image class="card-bg" src="/static/vip-card-bg.png" mode=""></image>
        <view class="b-btn"> 立即开通 </view>
        <view class="tit">
          <text class="yticon icon-iLinkapp-"></text>
          DCloud会员
        </view>
        <text class="e-m">DCloud Union</text>
        <text class="e-b">开通会员开发无bug 一测就上线</text>
      </view>
    </view>
  </view>
</template>
<style lang="scss" scoped>
.user-section {
  height: 520upx;
  padding: 100upx 30upx 0;
  position: relative;
  .bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    filter: blur(1px);
    opacity: 0.7;
  }
}
.user-info-box {
  height: 180upx;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  .portrait {
    width: 130upx;
    height: 130upx;
    border: 5upx solid #fff;
    border-radius: 50%;
  }
  .username {
    font-size: $font-lg + 6upx;
    color: $font-color-dark;
    margin-left: 20upx;
  }
}
</style>
